package cn.pugle.base.TExp;

public class TOrExp extends TExp {
    public TOrExp(TExp le, TExp re) {
        leftExp = le;
        rightExp = re;
    }
    
    @Override
    public boolean matches(TLog log) {
        return (leftExp.matches(log) || rightExp.matches(log));
    }

    @Override
    public String toString() {
        return "(" + leftExp.toString() + "|" + rightExp.toString() + ")";
    }
    protected TExp leftExp;
    protected TExp rightExp;
}
